package org.example.myleet.p871;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.Parser;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(0 == solution.minRefuelStops(1, 1, Parser.parse("[]")));
        Assert.isTrue(2 == solution.minRefuelStops(100, 10, Parser.parse("[[10,60],[20,30],[30,30],[60,40]]")));
        Assert.isTrue(-1 == solution.minRefuelStops(100, 1, Parser.parse("[[10,100]]")));
        Assert.isTrue(5 == solution.minRefuelStops(15, 5, Parser.parse("[[1,2],[2,2],[3,2],[4,2],[5,2]]")));
        Assert.isTrue(-1 == solution.minRefuelStops(15, 5, Parser.parse("[[1,2],[2,1],[3,2],[4,2],[5,2]]")));
        Assert.isTrue(1 == solution.minRefuelStops(100, 50, Parser.parse("[[25,25],[50,50]]")));
    }
}
